home *** CD-ROM | disk | FTP | other *** search
- Path: airdmhor.gen.nz!not-for-mail
- From: gumboot@airdmhor.gen.nz (Simon Hosie)
- Newsgroups: comp.lang.c
- Subject: Re: const char??
- Date: 22 Feb 1996 03:07:22 +1300
- Organization: Airdmhor : a couple of BBS's, a bunch of people, and a cat.
- Message-ID: <4gf8uq$i60@airdmhor.gen.nz>
- References: <31287436.1235873@news.inforamp.net>
- NNTP-Posting-Host: airdmhor.gen.nz
- X-Newsreader: TIN [version 1.2 PL2]
-
- Danny Heuman:
- > What is a const char? I am getting an error at compile time stating
- > that it can not convert an int to a const char. I'm using strcpy.
-
- const char * is a pointer to a string that can't/won't be modified.. it
- sounds as if you're passing ant in to strcpy, strcpy doesn't accept int's
- anywhere.
-